<!--
 * @Description: 超时调用和间歇调用
 * @Author: zzj
 * @Date: 2021-09-15 11:04:43
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-15 11:32:26
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>超时调用和间歇调用</title>
    <script>
        var id = setTimeout(function(){
            console.log("现在是5秒后");
        },5000);
       // clearTimeout(id);//可以在某些时刻将定时器清除
        var id1 = setInterval(function(){
            console.log("执行了一次");
        },1000);
        //轮播图
        

    </script>
</head>
<body>
    
</body>
</html>